package com.xyw.his00.pojo.dbpojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xyw.his00.pojo.newpojo.ExportPdfFileTemplate;
import com.xyw.his00.service.newservice.ExportPdf;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@TableName("disposal_request")
@AllArgsConstructor
@NoArgsConstructor
public class DisposalRequest implements ExportPdf {
    @TableId(value="id",type = IdType.AUTO)
    private Integer id;
    private Integer registerId;
    private Integer medicalTechnologyId;
    private String  disposalInfo;
    private String  disposalPosition;
    private LocalDateTime creationTime;
    private Integer disposalEmployeeId;
    private Integer inputdisposalEmployeeId;
    private LocalDateTime disposalTime;
    private String disposalResult;
    private String disposalState;
    private String disposalRemark;

    @Override
    public ExportPdfFileTemplate createPdf(Class<? extends ExportPdf> exportedPdfClass) {
        return new ExportPdfFileTemplate(getRegisterId(),
                getMedicalTechnologyId(),
                getDisposalInfo(),
                getDisposalPosition(),
                getCreationTime(),
                getDisposalEmployeeId(),
                getInputdisposalEmployeeId(),
                getDisposalTime(),
                getDisposalResult(),
                getDisposalState(),
                getDisposalRemark());
    }
}
